import request from '@/utils/request'

// 查询成品仓库列表
export function listStoreProduct(query) {
  return request({
    url: '/sales/storeProduct/list',
    method: 'get',
    params: query
  })
}

// 查询成品仓库详细
export function getStoreProduct(id) {
  return request({
    url: '/sales/storeProduct/' + id,
    method: 'get'
  })
}

// 新增成品仓库
export function addStoreProduct(data) {
  return request({
    url: '/sales/storeProduct',
    method: 'post',
    data: data
  })
}

// 修改成品仓库
export function updateStoreProduct(data) {
  return request({
    url: '/sales/storeProduct',
    method: 'put',
    data: data
  })
}

// 删除成品仓库
export function delStoreProduct(id) {
  return request({
    url: '/sales/storeProduct/' + id,
    method: 'delete'
  })
}
